<script type="text/javascript">
    window.addEvent('domready', function(){
        var tabs = new Tabs();
        tabs.initTabs(); 
    });
</script>

<?
//var_dump($data);

?>

<div class="form-wrap">
    <h2>Ustawienia</h2>
    <?= form::open('settings/index', array()) ?>
    <input type="hidden" name="submit" value="1" />
    <div class="form-content-wrap">
        <div class="tabs-wrap">
            <div class="tabs-head-wrap">
                <div class="tab-head tab-head-1">Ogólne</div>
                <div class="tab-head tab-head-2">Inne</div>
            </div>
            <div class="tabs-body-wrap">
                <div class="tab-body tab-body-1">
                    <table cellpadding="3" border="0" class="form-table">
                        <tbody>
                            <tr>
                                <th><label for="inp_settings-marza">Marża standardowa</label></th>
                                <td>
                                    <?=form::input('settings-marza', Request::g('settings-marza', $data), array('id'=>'inp_settings-marza', 'class'=>'input-numeric',));?>%
                                </td>
                            </tr>
                            <tr>
                                <th><label for="inp_settings-min_gain">Minimalny zysk</label></th>
                                <td>
                                    <?=form::input('settings-min_gain', Request::g('settings-min_gain', $data), array('id'=>'inp_settings-min_gain', 'class'=>'input-numeric',));?>&euro; (NETTO)
                                </td>
                            </tr>
<!--                            <tr>
                                <th><label for="inp_settings-min_gain_amount">kwota dodana poniżej minimalnego zysku</label></th>
                                <td>
                                    <?=form::input('settings-min_gain_amount', Request::g('settings-min_gain_amount', $data), array('id'=>'inp_settings-min_gain_amount', 'class'=>'input-numeric',));?>&euro; (NETTO)
                                </td>
                            </tr>-->
                            <tr>
                                <th><label for="inp_settings-cur_euro">Kurs &euro;</label></th>
                                <td>
                                    <?=form::input('settings-cur_euro', Request::g('settings-cur_euro', $data), array('id'=>'inp_settings-cur_euro', 'class'=>'input-numeric',));?>zł
                                </td>
                            </tr>
                            <tr>
                                <th><label for="inp_settings-taxvat">Podatek VAT</label></th>
                                <td>
                                    <?=form::input('settings-taxvat', Request::g('settings-taxvat', $data), array('id'=>'inp_settings-taxvat', 'class'=>'input-numeric',));?>%
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>  <!-- //. tab-body .tab-body-1 -->

                <div class="tab-body tab-body-1">
                    <table cellpadding="3" border="0" class="form-table">
                        <tbody>
<!--                            <tr>
                                <th><label for="inp_settings:marza">świąteczy layout</label></th>
                                <td>
                                    <?=form::input('settings:marza', Request::g('settings:marza', $data), array('id'=>'inp_settings:marza', 'class'=>'input-numeric',));?>%
                                </td>
                            </tr>-->
                        </tbody>
                    </table>
                </div>  <!-- //. tab-body .tab-body-2 -->
            </div>
        </div>
        <div class="form-bottom-menu1">
            <input class="save-butt" type="submit" value="zapisz" />
        </div>
    </div>
    <?= form::close() ?>
</div>